<%-- 
    Document   : ticketdetails
    Created on : Nov 29, 2009, 10:53:26 PM
    Author     : brian
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList,helpdesk.HelpTicket,helpdesk.HelpTicketUpdate"%>

<%! // declarations go in this kind of tag
    String error;
    String ticketStr;
    int ticketId;
 %>

 <% // embedded java code goes in this kind of tag
    error = (String)request.getAttribute("error");
    if (error == null)
        error = "";
    ticketId = (Integer)request.getAttribute("ticketId");

 %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <%@include file="headtags.html"%>
        <title>Submit a ticket update</title>
    </head>
    <body>
        <%@include file="menu.html"%>

        <%-- The tag below places the output of the java expression on the page --%>
        <%= error %><br />

        <%
        if (ticketId == -1)
        {
            %>
            <a href="viewtickets.jsp">Return to tickets</a>
            <%
        }
        else
        {
            %>
            <a href="ticketdetails.jsp?ticketid=<%= ticketId %>">Return to ticket</a>
            <%
        }
        %>
        
    </body>
</html>
